package com.xnyzc.lhy.order.controller.dapi.banner;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.order.service.banner.HomePageService;
import com.xnyzc.lhy.order.service.version.AppVersionService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  首页banner
 * </p>
 *
 * @author wangshuo
 * @since 2019-11-20
 */
@RestController
@RequestMapping("/banner")
public class HomePageBannerController {

    @Autowired
    private HomePageService homePageService;

    /**
     * 获取首页轮播
     * @return
     */
    @ApiOperation(value = "获取首页轮播", notes = "获取首页轮播")
    @GetMapping(value = "getHomePageBanner")
    public Rv getHomePageBanner(){
        return homePageService.getHomePageBanner();
    }
}
